//
// api.js
// vue3-element-admin
//
// Created by 区区电脑 on 2023/04/11.
//



import request from "@/request"


/**
 * 查询字典类型分页列表
 * @param params
 * @param data
 * @returns {*}
 * @constructor
 */
export function GetDictTypePageList(params = {}, data = {}) {
    return request({url: '/api/SysDict/GetDictTypePageList', method: 'POST', params, data})
}

/**
 * 添加字典类型
 * @param data
 * @returns {*}
 * @constructor
 */
export function AddDictType(data = {}) {
    return request({url: '/api/SysDict/AddDictType', method: 'POST', data})
}

/**
 * 修改字典类型
 * @param data
 * @returns {*}
 * @constructor
 */
export function UpdateDictType(data = {}) {
    return request({url: '/api/SysDict/UpdateDictType', method: 'PUT', data})
}

/**
 * 删除字典类型
 * @param params
 * @returns {*}
 * @constructor
 */
export function DeleteDictType(params = {}) {
    return request({url: '/api/SysDict/DeleteDictType', method: 'DELETE', params})
}
